window.onload=function(){
	
	var head = document.getElementsByClassName("img")[0],

		footer = document.getElementsByClassName("footer")[0];
		
	setInterval(function(){
		var 		obj = document.getElementsByClassName("IC-card")[0];
		if (window.innerHeight){
			winHeight = window.innerHeight;
		}else if ((document.body) && (document.body.clientHeight)){
			winHeight = document.body.clientHeight;
		}
		//console.log(obj.offsetHeight)
		
		if (head) {
			head.style.height = winHeight-70 +"px";
			footer.style.background = "#196ecf";
		} else{
			obj.offsetHeight<=winHeight-118? 
			obj.style.height = winHeight-118 +"px":
			obj.style.height = "auto";
		}
	},100)
	
	
	
}